
Page({

  /**
   * 页面的初始数据
   */
  data: {
    func2: [
      { name:'检测记录', type: '', tap:'goMyRecord', icon: '../../static/img/user/info_icon.svg' },
      { name:'医护认证', type: '', tap: 'goToIdentify', icon: '../../static/img/user/set_icon.svg' },
      { name:'退出登录', type: '', tap: 'quit', icon: '../../static/img/user/logs_icon.svg' },
     // { name:'意见反馈', type: 'feedback', tap:'', icon: '../../static/img/user/about_icon.svg' },
      //{ name:'更多功能', type: '', tap:'goUnder', icon: '../../static/img/user/set_icon.svg' },
    ],

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    if (typeof this.getTabBar === 'function' && this.getTabBar()) {
        this.getTabBar().setData({
          tab: 'user',
          selected: 2
        })
    }
   
  },

  //认证
  goToIdentify(){
    // console.log("111");
  },

  // 检测记录
  goMyRecord(){
    wx.showLoading({
      title: '加载中...',
      mask: true,
    })
    wx.navigateTo({
      url: '/pages/myRecord/myRecord',
      success(res) {
        wx.hideLoading();
      }
    })
  },
  quit(){
    wx.showLoading({
      title: '加载中...',
      mask: true,
    })
    wx.navigateTo({
      url: '/pages/login/login',
      success(res) {
        wx.hideLoading();
      }
    })
  }




})